home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
emula
/
arosdv19.lha
/
AROS
/
dos
/
makefile
< prev
next >
Wrap
Makefile
|
1996-10-25
|
2KB
|
50 lines
# $Id: makefile,v 1.18 1996/10/25 14:28:55 aros Exp $
TOP=..
include $(TOP)/config/make.cfg
FILES = dos_init dos_functable lddemon errorlist loadseg_elf doname
FUNCTIONS = \
adddosentry addprocess allocdosobject assignlock attemptlockdoslist \
cli close createnewproc currentdir datetostr delay duplock exall \
examine fgetc findarg finddosentry flush fputc fputs freeargs \
freedosentry freedosobject getargstr input ioerr isinteractive \
loadseg lockdoslist makedosentry maxcli namefromlock open \
openfromlock output printfault putstr read readargs readitem \
remdosentry runcommand seek selectinput selectoutput setioerr \
setowner strtolong ungetc unloadseg unlockdoslist vfprintf \
vprintf write filepart addbuffers changemode createdir deletefile \
exallend isfilesystem lock matchpattern matchpatternnocase \
parsepattern parsepatternnocase setcomment setfiledate setfilesize \
setprotection pathpart
all: setup \
$(foreach f,$(FILES),$(OSGENDIR)/$(f).o) \
$(foreach f,$(FUNCTIONS),$(OSGENDIR)/$(f).o)
setup :
@if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
clean:
$(RM) $(OSGENDIR) *.err $(LIBDIR)/libdos.a
$(OSGENDIR)/%.o: %.c
$(CC) $(CFLAGS) $< -c -o $@ 2>&1|tee $*.err
if test ! -s $*.err; then rm $*.err ; else true ; fi
dos_functable.c : $(foreach f,$(FUNCTIONS),$(f).c) \
$(TOP)/scripts/makefunctable.awk
gawk -f $(TOP)/scripts/makefunctable.awk \
--assign lib=Dos \
$^
$(OSGENDIR)/%.d: %.c
@if [ ! -d $(OSGENDIR) ]; then $(MKDIR) $(OSGENDIR) ; else true ; fi
@$(RM) $@
@touch $@
$(MKDEPEND) -p$(OSGENDIR)/
include $(foreach f,$(FILES),$(OSGENDIR)/$(f).d)
include $(foreach f,$(FUNCTIONS),$(OSGENDIR)/$(f).d)